From 512ec4b794290457e624db4b9cf70ced4abc804a Mon Sep 17 00:00:00 2001 From: Carl Lerche + Yehuda Katz Date: Fri, 13 Jun 2014 14:19:06 -0700 Subject: [PATCH] Fix tests --- tests/support/mod.rs | 8 -------- tests/test_cargo_compile_git_deps.rs | 4 ++-- 2 files changed, 2 insertions(+), 10 deletions(-) diff --git a/tests/support/mod.rs b/tests/support/mod.rs index ac2326ae1..a7cde6a65 100644 --- a/tests/support/mod.rs +++ b/tests/support/mod.rs @@ -64,14 +64,6 @@ impl ProjectBuilder { } } - pub fn join(&self, name: &str, path: T) -> ProjectBuilder { - ProjectBuilder { - name: name.as_slice().to_str(), - root: self.root.join(path.as_slice()).clone(), - files: vec!() - } - } - pub fn root(&self) -> Path { self.root.clone() } diff --git a/tests/test_cargo_compile_git_deps.rs b/tests/test_cargo_compile_git_deps.rs index 2574a3631..03675ac56 100644 --- a/tests/test_cargo_compile_git_deps.rs +++ b/tests/test_cargo_compile_git_deps.rs @@ -67,8 +67,8 @@ test!(cargo_compile_simple_git_dep { assert_that(project.cargo_process("cargo-compile"), execs() - .with_stdout(format!("Compiling dep1 v0.5.0 (file:{})\nCompiling foo v0.5.0 (file:{})\n", - git_root.display(), root.display())) + .with_stdout(format!("Updating git repository `file:{}`\nCompiling dep1 v0.5.0 (file:{})\nCompiling foo v0.5.0 (file:{})\n", + git_root.display(), git_root.display(), root.display())) .with_stderr("")); assert_that(&project.root().join("target/foo"), existing_file()); -- 2.30.2